//
//  Global.h
//  BaseLib
//
//  Created by CPX on 2018/5/21.
//  Copyright © 2018年 CPX. All rights reserved.
//

#import <UIKit/UIKit.h>

#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define IS_PAD (UI_USER_INTERFACE_IDIOM()== UIUserInterfaceIdiomPad)
#define IS_iPhoneX [Global isIPhoneX]
#define NavHeight [Global navHeight]
#define TabbarHeight [Global tabbarHeight]
#define WeakSelf __weak typeof(self) weakSelf = self;

/**
 全局常用计算Frame相关
 @author yzl
 */
@interface Global : NSObject

/**
 返回按钮默认颜色
 */
+ (UIColor*)defaultBackBtnColor;

+ (CGFloat)navHeight;

+ (CGFloat)tabbarHeight;

+ (CGFloat)cellHeightForStandard:(CGFloat)height;

+ (CGFloat)heightScale;

+ (CGFloat)widthScale;

+ (BOOL) isIPhoneX;

@end
